package com.erp.gather.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import com.ruoyi.common.core.web.oldDomain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 商品区域国家业务对象 erp_product_area
 *
 * @author erp
 * @date 2023-03-14
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class ErpProductAreaBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 国家名字
     */
    @NotBlank(message = "国家名字不能为空", groups = { AddGroup.class, EditGroup.class })
    private String areaName;

    /**
     * 国家编号
     */
    @NotBlank(message = "国家编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String areaNo;

    /**
     * 乐观锁
     */
    private String revision;


}
